﻿@model List<GameSchool.Models.ViewModels.PointsViewModel>
<link href="@Url.Content("~/Content/css/listhandins.css")" rel="stylesheet" type="text/css" />

<section class="newsItem full">

<h2>Verkefni nemenda</h2>
<ul id="listHandins">
@foreach (var v in Model)
{

    if (v.grated != true)
    {   
    <li><a href="@Url.Action("RateHandIns/" + @v.ID, "HandIn")"><button class="ratebutton">Gefa stig</button></a> Nafn: @v.name Stig: @v.myPoints  </li> 
    }
    else
    {     
    <li><a href="#"><button class="ratebutton2">Búið</button></a> Nafn: @v.name Stig: @v.myPoints  </li> 
    }  
            
        
        
        
        
        
}
</ul>


</section>